<?php 

$mode = $_REQUEST['mode'];
$id = $_REQUEST['id'];		//map collection key


$collection = $db->map;


//장소등록
if($mode == "insert")
{

	$doc = array();
	$doc['title'] = "올래국수";
	$doc['desc'] = "맛있다";
	$doc['lat'] = "1";
	$doc['lng'] = "2";
	$doc['regdate'] = "";
	
	//print_r($doc);
	
	
	
	$result = $collection->insert($doc);
	
}
elseif($mode == "select")
{
	




}
elseif($mode == "update")
{





}
elseif($mode == "delete")
{






}


?>